From: Ray Strode Date: Tue, 22 Mar 2011 16:50:56 +0000 (-0400) Subject: endSessionDialog: emit Closed signal when dialog disappears X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8531 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=85c007431b0dbf1c8dd7d4e9e05b91d3dec82a70;p=gnome-shell.git endSessionDialog: emit Closed signal when dialog disappears The session manager needs to keep its internal state for the dialog in sync with ours. https://bugzilla.gnome.org/show_bug.cgi?id=645485 --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 08c5705c9..d1fff2d05 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -406,6 +406,13 @@ EndSessionDialog.prototype = { }]); }, + close: function() { + ModalDialog.ModalDialog.prototype.close.call(this); + DBus.session.emit_signal('/org/gnome/SessionManager/EndSessionDialog', + 'org.gnome.SessionManager.EndSessionDialog', + 'Closed', '', []); + }, + cancel: function() { this._stopTimer(); DBus.session.emit_signal('/org/gnome/SessionManager/EndSessionDialog',